<template>
	<view>
		<button type="warn" @click="del">删除</button>
	</view>
</template>

<script setup>
	function del(){
		uni.showModal({
			title:"是否删除？",
			//content:"删除后不可恢复！",
			//showCancel:false,
			cancelText:"NO",
			cancelColor:"#dd524d",
			confirmText:"YES",
			confirmColor:"#3cb371",
			editable:true,
			placeholderText:"请输入删除后的内容...",
			success:(e)=>{
				console.log(e);
				e.confirm ? uni.showToast({title:"删除成功..."}) : uni.showToast({title:"删除失败...",icon:"error"})
			}
		})
	}
	uni.hideTabBarRedDot({
		index:1
	})
</script>

<style lang="scss" scoped>
	       
</style>
